package com.camartsApp.service.impl;

import com.camartsApp.dto.TopUserWithPhotoDTO;
import com.camartsApp.mapper.TopUserMapper;
import com.camartsApp.service.TopUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TopUserServiceImpl implements TopUserService {

    @Autowired
    private TopUserMapper topUserMapper;

    @Override
    public List<TopUserWithPhotoDTO> getTopUsersWithTopPhoto(int limit) {
        return topUserMapper.selectTopUsersWithTopPhoto(limit);
    }
}
